<template>
	<add-order-special v-if="site.isSpecial"></add-order-special>
	<add-order-common v-else></add-order-common>
</template>

<script>
	import AddOrderCommon from "./add_common/index.vue"
	import AddOrderSpecial from "./add_special/index.vue"
	export default {
		name: "AddOrder",
		components: {
			AddOrderCommon,
			AddOrderSpecial
		},
		computed: {
			site() {
				return this.$store.getters.site
			}
		},
		destroyed() {
			this.$store.dispatch('setOrder')
		}
	}
</script>
